Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize DecodeString performance and memory usage #1

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

Pincheng0101
Copy link
Contributor

$ go test -bench=. -benchtime=1000x -benchmem -run=^#

goos: darwin
goarch: arm64
pkg: github.com/kklab-com/goth-base62
BenchmarkBase62-8           1000           4685694 ns/op         6427377 B/op      39352 allocs/op
BenchmarkBase62Old-8        1000           4948722 ns/op         7186406 B/op      42273 allocs/op
PASS
ok      github.com/kklab-com/goth-base62        9.737s

@yetisno
Copy link
Collaborator

yetisno commented Apr 8, 2022

LGTM

@yetisno yetisno merged commit d62f01a into kklab-com:master Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants